﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="promotion_add" data-title="添加限时促销" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span>添加限时促销</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">限时促销列表</a></li>
							<li class="ali-active"><a>添加限时促销</a></li>
						</ul>				
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>名称：</th>
								<td><input type="text" name="Name" size="60" maxlength="150" class="ali-input <%=ContentLang%>Font"></td>
							</tr>
							<tr>
								<th>课程：</th>
								<td>
									<select name="CourseID" data-ali-widget="combo" data-class="<%=ContentLang%>Font">
										<ali:List Object="Course" Condition="IsReleased=true">
											<ali:Record>
												<option value="<%=ID%>" data-name="<%=Name%>" data-picture="<%=Picture%>"><%=Name%></option>
											</ali:Record>
										</ali:List>
									</select>
								</td>
							</tr>
							<tr>
								<th>开始时间：</th>
								<td><input type="text" name="StartTime" value="<%=DateTime.Now.ToString("yyyy-MM-dd")%>" readonly class="ali-input CHSFont" data-ali-widget="calendar" data-date-format="yyyy-MM-dd"></td>
							</tr>
							<tr>
								<th>持续时间：</th>
								<td><input type="number" name="Duration" value="1" min="1" required class="ali-input CHSFont" style="width:60px">天</td>
							</tr>
							<tr>
								<th>活动价格：</th>
								<td><input type="text" name="Price" value="1" required class="ali-input CHSFont" style="width:60px">元</td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">添 加</button><input type="hidden" name="TimeUnit" value="Day"></div>
	</form>
</section>